function City(cityIndex){
	var self = this;
	base(this,LSprite,[]);
	self.index = cityIndex;
	self.showCityStatus();
	self.showCityButton();
}
City.prototype.showCityButton=function(){
	var self = this,bar,button;
	button = getButton04("商业");
	button.y = 250;
	self.addChild(button);
	button = getButton04("农业");
	button.x = 90;
	button.y = 250;
	self.addChild(button);
	button = getButton04("治安");
	button.x = 180;
	button.y = 250;
	self.addChild(button);
	button = getButton04("输送");
	button.x = 270;
	button.y = 250;
	self.addChild(button);
	button = getButton04("探访");
	button.y = 300;
	self.addChild(button);
	button = getButton04("任命");
	button.x = 90;
	button.y = 300;
	self.addChild(button);
	button = getButton04("奖赏");
	button.x = 180;
	button.y = 300;
	self.addChild(button);
	button = getButton04("移动");
	button.x = 270;
	button.y = 300;
	self.addChild(button);
	button = getButton04("外交");
	button.y = 350;
	self.addChild(button);
	button = getButton04("征兵");
	button.x = 90;
	button.y = 350;
	self.addChild(button);
	button = getButton04("训练");
	button.x = 180;
	button.y = 350;
	self.addChild(button);
	button = getButton04("战争");
	button.x = 270;
	button.y = 350;
	self.addChild(button);
/*
	bar = getBar(500,200);
	bar.y = 250;
	self.addChild(bar);*/
}
City.prototype.showCityStatus=function(){
	var self = this,barBack,bar,nameTxt;
	var nameLayer = new LSprite();
	self.addChild(nameLayer);
	barBack = new LSprite();
	nameLayer.addChild(barBack);
	barBack.graphics.drawRect(1,"#000000",[0,0,500,50],true,"#000000");
	barBack.alpha = 0.7;
	bar = getBar(500,50);
	nameLayer.addChild(bar);
	nameTxt = new LTextField();
	nameTxt.text = "南皮";
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 30;
	nameTxt.y = 16;
	nameLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "城市规模";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 100;
	nameTxt.y = 16;
	nameLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = "大";
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 180;
	nameTxt.y = 16;
	nameLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "城市人口";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 250;
	nameTxt.y = 16;
	nameLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 230000;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 330;
	nameTxt.y = 16;
	nameLayer.addChild(nameTxt);


	var statusLayer = new LSprite();
	statusLayer.y = 50;
	self.addChild(statusLayer);
	barBack = new LSprite();
	statusLayer.addChild(barBack);
	barBack.graphics.drawRect(1,"#000000",[0,0,600,200],true,"#000000");
	barBack.graphics.drawRect(1,"#FFFFFF",[145,18,150,164]);
	barBack.graphics.drawRect(1,"#FFFFFF",[300,18,130,164]);
	barBack.graphics.drawRect(1,"#FFFFFF",[435,18,140,164]);
	barBack.alpha = 0.7;
	bar = getBar(600,200);
	statusLayer.addChild(bar);
	nameTxt = new LTextField();
	nameTxt.text = "太守";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 20;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = "刘备";
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 60;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);
	var face = new Face(1);
	face.x = 20;
	face.y = 50;
	statusLayer.addChild(face);

	nameTxt = new LTextField();
	nameTxt.text = "武将数";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 150;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 3;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 230;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "兵力";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 150;
	nameTxt.y = 52;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 13000;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 230;
	nameTxt.y = 52;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "士气";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 150;
	nameTxt.y = 82;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 80;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 230;
	nameTxt.y = 82;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "训练度";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 150;
	nameTxt.y = 112;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 80;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 230;
	nameTxt.y = 112;
	statusLayer.addChild(nameTxt);


	nameTxt = new LTextField();
	nameTxt.text = "农业";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 305;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 2500;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 380;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "粮食收入";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 305;
	nameTxt.y = 52;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 60;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 385;
	nameTxt.y = 52;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "商业";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 305;
	nameTxt.y = 82;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 2500;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 385;
	nameTxt.y = 82;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "资金收入";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 305;
	nameTxt.y = 112;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 60;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 385;
	nameTxt.y = 112;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "民心";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 440;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 82;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 520;
	nameTxt.y = 22;
	statusLayer.addChild(nameTxt);


	nameTxt = new LTextField();
	nameTxt.text = "资金";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 440;
	nameTxt.y = 52;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 1100;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 520;
	nameTxt.y = 52;
	statusLayer.addChild(nameTxt);

	nameTxt = new LTextField();
	nameTxt.text = "粮食";
	nameTxt.color = "#CCCCCC";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 440;
	nameTxt.y = 82;
	statusLayer.addChild(nameTxt);
	nameTxt = new LTextField();
	nameTxt.text = 3100;
	nameTxt.color = "#FFFFFF";
	nameTxt.weight = "bolder";
	nameTxt.size = 12;
	nameTxt.x = 520;
	nameTxt.y = 82;
	statusLayer.addChild(nameTxt);
}